<?php
//registreren
if(isset($_POST["register"])){
	$newUser = new register();
	echo $newUser->validateInfo($_POST["username"], $_POST["password1"], $_POST["password2"], $_POST["email"]);
}
include("includes/header.php");
?>
<form name="register" action="" method="POST">
    <fieldset>
        <legend>Register</legend>
        <label for="username">Username:</label><input type="text" name="username" id="username" value=""/><br />
        <label for="password1">Password:</label><input type="password" name="password1" id="password1" value=""/><br />
        <label for="password1">Password check:</label><input type="password" name="password2" id="password2" value=""/><br />
        <label for="email">E-mail:</label><input type="text" name="email" id="email" value=""/><br />
        <input type="submit" name="register" value="Register" />
    </fieldset>
</form>